package com.teemo.dp.singleton.demo1;

/**
 * @author Teemo
 */
public class Demo {
    public static void main(String[] args) {
        // 哥哥要使用洗衣机
        Washer washer = Washer.getInstance();
        washer.wash();
        Washer instance = Washer.getInstance();
        instance.wash();
        System.out.println(washer);
        System.out.println(instance);
    }
}
